package org.example.entity;

import java.io.Serializable;
import java.util.Arrays;

public class BomDetail implements Serializable {

    private int id = 0;
    private int bomId = 0;
    private int codeId = 0;
    private int orderBomId = 0;
    private String code = null;
    private String name = null;
    private int itemcode = 0;
    private String quantity = null;
    private int uomId = 0;
    private String uomName = null;
    private String uomEngName = null;
    private int inDepcalc =0;
    private String inDepc = null;
    private int orderId;
    private int weighTypeId = 0;
    private String weighTypeName = null;
    private int materialTypeId =0;
    private String materialTypeName = null;
    private int toleranceTypeId =0;
    private String toleranceTypeName = null;
    private double toleranceUpper = 0.0D;
    private double toleranceLower=0.0D;
    private String potencyId;
    private String potencyFormula = null;
    private int precisionId=0;
    private double precisionValue =0.0D;
    private String spec;
    private String uomSymbol;
    private String actualQuantity;
    private String planQuantity;
    private String materialcode;
    private String materialName;
    private String materialcodeType;
    private int weightseq;
    private String weightModeName;
    private int weightModeId;
    private boolean wflag;
    private int chkweiTypeId;
    private String chkweiTypeName;
    private double chkweiUpper;
    private double chkweiLower;
    private int chkweiTolTypeId;
    private String chkweiTolTypeName;
    private int seqNo;
    private String wighedQuantity;
    private byte[] byteUuId = null;
    private String extendInfo;private int constraints;
    private int totalPackages = 0;
    private String serialNo;
    private Boolean replaceFlag = false;private Double targetQauntity;
    private Integer target;
    private String weighQuantity;
    private String labels;
    private String bomVersion;
    private String production;
    private String productType;
    private String bomQuantity;
    private Integer revision;
    private String upgradeRules;
    private String versionNumber;
    private String weighDiff;


    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getBomId() {
        return bomId;
    }

    public void setBomId(int bomId) {
        this.bomId = bomId;
    }

    public int getCodeId() {
        return codeId;
    }

    public void setCodeId(int codeId) {
        this.codeId = codeId;
    }

    public int getOrderBomId() {
        return orderBomId;
    }

    public void setOrderBomId(int orderBomId) {
        this.orderBomId = orderBomId;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getItemcode() {
        return itemcode;
    }

    public void setItemcode(int itemcode) {
        this.itemcode = itemcode;
    }

    public String getQuantity() {
        return quantity;
    }

    public void setQuantity(String quantity) {
        this.quantity = quantity;
    }

    public int getUomId() {
        return uomId;
    }

    public void setUomId(int uomId) {
        this.uomId = uomId;
    }

    public String getUomName() {
        return uomName;
    }

    public void setUomName(String uomName) {
        this.uomName = uomName;
    }

    public String getUomEngName() {
        return uomEngName;
    }

    public void setUomEngName(String uomEngName) {
        this.uomEngName = uomEngName;
    }

    public int getInDepcalc() {
        return inDepcalc;
    }

    public void setInDepcalc(int inDepcalc) {
        this.inDepcalc = inDepcalc;
    }

    public String getInDepc() {
        return inDepc;
    }

    public void setInDepc(String inDepc) {
        this.inDepc = inDepc;
    }

    public int getOrderId() {
        return orderId;
    }

    public void setOrderId(int orderId) {
        this.orderId = orderId;
    }

    public int getWeighTypeId() {
        return weighTypeId;
    }

    public void setWeighTypeId(int weighTypeId) {
        this.weighTypeId = weighTypeId;
    }

    public String getWeighTypeName() {
        return weighTypeName;
    }

    public void setWeighTypeName(String weighTypeName) {
        this.weighTypeName = weighTypeName;
    }

    public int getMaterialTypeId() {
        return materialTypeId;
    }

    public void setMaterialTypeId(int materialTypeId) {
        this.materialTypeId = materialTypeId;
    }

    public String getMaterialTypeName() {
        return materialTypeName;
    }

    public void setMaterialTypeName(String materialTypeName) {
        this.materialTypeName = materialTypeName;
    }

    public int getToleranceTypeId() {
        return toleranceTypeId;
    }

    public void setToleranceTypeId(int toleranceTypeId) {
        this.toleranceTypeId = toleranceTypeId;
    }

    public String getToleranceTypeName() {
        return toleranceTypeName;
    }

    public void setToleranceTypeName(String toleranceTypeName) {
        this.toleranceTypeName = toleranceTypeName;
    }

    public double getToleranceUpper() {
        return toleranceUpper;
    }

    public void setToleranceUpper(double toleranceUpper) {
        this.toleranceUpper = toleranceUpper;
    }

    public double getToleranceLower() {
        return toleranceLower;
    }

    public void setToleranceLower(double toleranceLower) {
        this.toleranceLower = toleranceLower;
    }

    public String getPotencyId() {
        return potencyId;
    }

    public void setPotencyId(String potencyId) {
        this.potencyId = potencyId;
    }

    public String getPotencyFormula() {
        return potencyFormula;
    }

    public void setPotencyFormula(String potencyFormula) {
        this.potencyFormula = potencyFormula;
    }

    public int getPrecisionId() {
        return precisionId;
    }

    public void setPrecisionId(int precisionId) {
        this.precisionId = precisionId;
    }

    public double getPrecisionValue() {
        return precisionValue;
    }

    public void setPrecisionValue(double precisionValue) {
        this.precisionValue = precisionValue;
    }

    public String getSpec() {
        return spec;
    }

    public void setSpec(String spec) {
        this.spec = spec;
    }

    public String getUomSymbol() {
        return uomSymbol;
    }

    public void setUomSymbol(String uomSymbol) {
        this.uomSymbol = uomSymbol;
    }

    public String getActualQuantity() {
        return actualQuantity;
    }

    public void setActualQuantity(String actualQuantity) {
        this.actualQuantity = actualQuantity;
    }

    public String getPlanQuantity() {
        return planQuantity;
    }

    public void setPlanQuantity(String planQuantity) {
        this.planQuantity = planQuantity;
    }

    public String getMaterialcode() {
        return materialcode;
    }

    public void setMaterialcode(String materialcode) {
        this.materialcode = materialcode;
    }

    public String getMaterialName() {
        return materialName;
    }

    public void setMaterialName(String materialName) {
        this.materialName = materialName;
    }

    public String getMaterialcodeType() {
        return materialcodeType;
    }

    public void setMaterialcodeType(String materialcodeType) {
        this.materialcodeType = materialcodeType;
    }

    public int getWeightseq() {
        return weightseq;
    }

    public void setWeightseq(int weightseq) {
        this.weightseq = weightseq;
    }

    public String getWeightModeName() {
        return weightModeName;
    }

    public void setWeightModeName(String weightModeName) {
        this.weightModeName = weightModeName;
    }

    public int getWeightModeId() {
        return weightModeId;
    }

    public void setWeightModeId(int weightModeId) {
        this.weightModeId = weightModeId;
    }

    public boolean isWflag() {
        return wflag;
    }

    public void setWflag(boolean wflag) {
        this.wflag = wflag;
    }

    public int getChkweiTypeId() {
        return chkweiTypeId;
    }

    public void setChkweiTypeId(int chkweiTypeId) {
        this.chkweiTypeId = chkweiTypeId;
    }

    public String getChkweiTypeName() {
        return chkweiTypeName;
    }

    public void setChkweiTypeName(String chkweiTypeName) {
        this.chkweiTypeName = chkweiTypeName;
    }

    public double getChkweiUpper() {
        return chkweiUpper;
    }

    public void setChkweiUpper(double chkweiUpper) {
        this.chkweiUpper = chkweiUpper;
    }

    public double getChkweiLower() {
        return chkweiLower;
    }

    public void setChkweiLower(double chkweiLower) {
        this.chkweiLower = chkweiLower;
    }

    public int getChkweiTolTypeId() {
        return chkweiTolTypeId;
    }

    public void setChkweiTolTypeId(int chkweiTolTypeId) {
        this.chkweiTolTypeId = chkweiTolTypeId;
    }

    public String getChkweiTolTypeName() {
        return chkweiTolTypeName;
    }

    public void setChkweiTolTypeName(String chkweiTolTypeName) {
        this.chkweiTolTypeName = chkweiTolTypeName;
    }

    public int getSeqNo() {
        return seqNo;
    }

    public void setSeqNo(int seqNo) {
        this.seqNo = seqNo;
    }

    public String getWighedQuantity() {
        return wighedQuantity;
    }

    public void setWighedQuantity(String wighedQuantity) {
        this.wighedQuantity = wighedQuantity;
    }

    public byte[] getByteUuId() {
        return byteUuId;
    }

    public void setByteUuId(byte[] byteUuId) {
        this.byteUuId = byteUuId;
    }

    public String getExtendInfo() {
        return extendInfo;
    }

    public void setExtendInfo(String extendInfo) {
        this.extendInfo = extendInfo;
    }

    public int getConstraints() {
        return constraints;
    }

    public void setConstraints(int constraints) {
        this.constraints = constraints;
    }

    public int getTotalPackages() {
        return totalPackages;
    }

    public void setTotalPackages(int totalPackages) {
        this.totalPackages = totalPackages;
    }

    public String getSerialNo() {
        return serialNo;
    }

    public void setSerialNo(String serialNo) {
        this.serialNo = serialNo;
    }

    public Boolean getReplaceFlag() {
        return replaceFlag;
    }

    public void setReplaceFlag(Boolean replaceFlag) {
        this.replaceFlag = replaceFlag;
    }

    public Double getTargetQauntity() {
        return targetQauntity;
    }

    public void setTargetQauntity(Double targetQauntity) {
        this.targetQauntity = targetQauntity;
    }

    public Integer getTarget() {
        return target;
    }

    public void setTarget(Integer target) {
        this.target = target;
    }

    public String getWeighQuantity() {
        return weighQuantity;
    }

    public void setWeighQuantity(String weighQuantity) {
        this.weighQuantity = weighQuantity;
    }

    public String getLabels() {
        return labels;
    }

    public void setLabels(String labels) {
        this.labels = labels;
    }

    public String getBomVersion() {
        return bomVersion;
    }

    public void setBomVersion(String bomVersion) {
        this.bomVersion = bomVersion;
    }

    public String getProduction() {
        return production;
    }

    public void setProduction(String production) {
        this.production = production;
    }

    public String getProductType() {
        return productType;
    }

    public void setProductType(String productType) {
        this.productType = productType;
    }

    public String getBomQuantity() {
        return bomQuantity;
    }

    public void setBomQuantity(String bomQuantity) {
        this.bomQuantity = bomQuantity;
    }

    public Integer getRevision() {
        return revision;
    }

    public void setRevision(Integer revision) {
        this.revision = revision;
    }

    public String getUpgradeRules() {
        return upgradeRules;
    }

    public void setUpgradeRules(String upgradeRules) {
        this.upgradeRules = upgradeRules;
    }

    public String getVersionNumber() {
        return versionNumber;
    }

    public void setVersionNumber(String versionNumber) {
        this.versionNumber = versionNumber;
    }

    public String getWeighDiff() {
        return weighDiff;
    }

    public void setWeighDiff(String weighDiff) {
        this.weighDiff = weighDiff;
    }

    @Override
    public String toString() {
        return "BomDetail{" +
                "id=" + id +
                ", bomId=" + bomId +
                ", codeId=" + codeId +
                ", orderBomId=" + orderBomId +
                ", code='" + code + '\'' +
                ", name='" + name + '\'' +
                ", itemcode=" + itemcode +
                ", quantity='" + quantity + '\'' +
                ", uomId=" + uomId +
                ", uomName='" + uomName + '\'' +
                ", uomEngName='" + uomEngName + '\'' +
                ", inDepcalc=" + inDepcalc +
                ", inDepc='" + inDepc + '\'' +
                ", orderId=" + orderId +
                ", weighTypeId=" + weighTypeId +
                ", weighTypeName='" + weighTypeName + '\'' +
                ", materialTypeId=" + materialTypeId +
                ", materialTypeName='" + materialTypeName + '\'' +
                ", toleranceTypeId=" + toleranceTypeId +
                ", toleranceTypeName='" + toleranceTypeName + '\'' +
                ", toleranceUpper=" + toleranceUpper +
                ", toleranceLower=" + toleranceLower +
                ", potencyId='" + potencyId + '\'' +
                ", potencyFormula='" + potencyFormula + '\'' +
                ", precisionId=" + precisionId +
                ", precisionValue=" + precisionValue +
                ", spec='" + spec + '\'' +
                ", uomSymbol='" + uomSymbol + '\'' +
                ", actualQuantity='" + actualQuantity + '\'' +
                ", planQuantity='" + planQuantity + '\'' +
                ", materialcode='" + materialcode + '\'' +
                ", materialName='" + materialName + '\'' +
                ", materialcodeType='" + materialcodeType + '\'' +
                ", weightseq=" + weightseq +
                ", weightModeName='" + weightModeName + '\'' +
                ", weightModeId=" + weightModeId +
                ", wflag=" + wflag +
                ", chkweiTypeId=" + chkweiTypeId +
                ", chkweiTypeName='" + chkweiTypeName + '\'' +
                ", chkweiUpper=" + chkweiUpper +
                ", chkweiLower=" + chkweiLower +
                ", chkweiTolTypeId=" + chkweiTolTypeId +
                ", chkweiTolTypeName='" + chkweiTolTypeName + '\'' +
                ", seqNo=" + seqNo +
                ", wighedQuantity='" + wighedQuantity + '\'' +
                ", byteUuId=" + Arrays.toString(byteUuId) +
                ", extendInfo='" + extendInfo + '\'' +
                ", constraints=" + constraints +
                ", totalPackages=" + totalPackages +
                ", serialNo='" + serialNo + '\'' +
                ", replaceFlag=" + replaceFlag +
                ", targetQauntity=" + targetQauntity +
                ", target=" + target +
                ", weighQuantity='" + weighQuantity + '\'' +
                ", labels='" + labels + '\'' +
                ", bomVersion='" + bomVersion + '\'' +
                ", production='" + production + '\'' +
                ", productType='" + productType + '\'' +
                ", bomQuantity='" + bomQuantity + '\'' +
                ", revision=" + revision +
                ", upgradeRules='" + upgradeRules + '\'' +
                ", versionNumber='" + versionNumber + '\'' +
                ", weighDiff='" + weighDiff + '\'' +
                '}';
    }
}